package com.media.dao;

import com.media.bean.UserBean;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    UserBean getUserById(int id);
    UserBean getUserByName(String username);
    List<UserBean> getUserList(UserBean user);

    int addUser(UserBean user) throws SQLException;
    int editUser(UserBean user);
    int deleteUserById(int id);
}
